package com.chaoxing.controller;

import com.chaoxing.entity.Course;
import com.chaoxing.service.CourseService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class CourseController {

    @Resource
    private CourseService courseService;

    @RequestMapping("/searchCourseAll.do")
    public  List<Course> queryCourseAll(){
        List<Course> courses = courseService.searchALLCourses();
        return courses;
    }
}
